# -*- coding: utf-8 -*-
from qiniu import QiniuMacAuth, http
import json

url = "http://ai.qiniuapi.com/v3/video/censor"

access_key = "wkJupck8Ylduede0ny9KSsIG4vqwDkelgBfejKSv"
secret_key = "i4UrEdihv93LUun8MMG_OCAcGQHwPU6ZiHq5ijMg"

auth = QiniuMacAuth(access_key, secret_key)

jobID = '64e5bd91a2cfbcaec175abb7'

url = 'http://ai.qiniuapi.com/v3/jobs/video/' + jobID

ret, res = http._get_with_qiniu_mac(url, None, auth)

headers = {"code": res.status_code, "reqid": res.req_id, "xlog": res.x_log}

print(json.dumps(headers, indent=4, ensure_ascii=False))
print(json.dumps(ret, indent=4, ensure_ascii=False))